<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/email.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 发送内部邮件 | <font color=green><a href="__URL__/email">【内部邮件管理】</a></font><font color=green><a href="__URL__/out_email">【外部邮件管理】</a></font><font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div> <!--公共头部样式-->
     <div class="module_public_main">
        <table>
        <form action="__URL__/doSend" method="post" enctype="multipart/form-data">
        <input type="hidden" name="em_uid" value="<?php echo (session('UserId')); ?>" />
           <tr>
             <td align="right" width="12%">邮件发送人:</td>
             <td><input type="text" name="em_name" class="_input" value="<?php echo ($email_info[0]['u_name']); ?>"/><span></span>&nbsp;<font color=red>(邮件发送后将记录您的姓名)</font></td>
           </tr>
           <tr>
             <td align="right" >邮件源地址:</td>
             <td><input type="text" name="em_source" class="_input" value="<?php echo ($email_info[0]['em_source']); ?>"/><span></span>&nbsp;<font color=red>(邮件发送后将记录您的源地址)</font></td>
           </tr>
           <tr>
             <td align="right" >邮件目的地址:</td>
             <td><input type="text" name="em_purpose" class="_input" value="<?php echo ($purpose); ?>"/><span></span>&nbsp;&nbsp;
             <select name="purpose">
                <option>--请选择邮件接收人--</option>
                <?php if(is_array($e_info)): $i = 0; $__LIST__ = $e_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v["u_email_in"]); ?>|<?php echo ($v["u_name"]); ?>"><?php echo ($v["u_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
             </select>
             </td>
           </tr>
           <tr>
             <td align="right" >邮件标题:</td>
             <td><input type="text" name="em_title" class="_input"/><span></span></td>
           </tr>
           <tr>
             <td align="right" >是否增加附件:</td>
             <td>
             <input type="radio" value="1" name="attachment"/>&nbsp;<font color=green>是</font>&nbsp;&nbsp;
             <input type="radio" value="2" name="attachment" checked="true"/>&nbsp;<font color=red>否</font></td>
           </tr>
           <tr id="attachment_is" style="display:none;">
             <td align="right" >邮件附件:</td>
             <td><input type="file" name="em_filename"/><font color=red>&nbsp;(如果没有附件请直接留空)</font></td>
           </tr>
           <tr>
             <td align="right" >邮件内容:</td>
             <td><textarea cols="50" rows="7" class="_input2" name="em_content"></textarea></td>
           </tr>
           <tr>
             <td align="right">&nbsp;</td>
             <td><input type="submit" value="发送邮件" class="_button"/></td>
           </tr>
        </form>
        </table>
     </div>
 <!--公共尾部样式-->